package com.jaiai.work.user.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.jaiai.work.util.IdGenerate;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2018-04-20
 */
@TableName("t_user")
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value ="u_id",type= IdType.INPUT)
	private String UId;
    /**
     * email
     */
	private String email;
    /**
     * 密码
     */
	private String password;
    /**
     * 昵称
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 头像
     */
	private String avatar;
    /**
     * 性别
     */
	private Integer sex;
    /**
     * 用户分组
     */
	private String group;
    /**
     * 激活状态
     */
	private String activate;
    /**
     * 登录IP
     */
	@TableField("login_ip")
	private String loginIp;
    /**
     * 最后登录时间
     */
	@TableField("last_login_time")
	private Date lastLoginTime;
    /**
     * 登录平台
     */
	@TableField("login_platform")
	private Integer loginPlatform;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public String getUId() {
		return UId;
	}

	public void setUId(String UId) {
		this.UId = UId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getActivate() {
		return activate;
	}

	public void setActivate(String activate) {
		this.activate = activate;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Integer getLoginPlatform() {
		return loginPlatform;
	}

	public void setLoginPlatform(Integer loginPlatform) {
		this.loginPlatform = loginPlatform;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.UId;
	}

}
